import 'dart:async';

import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:sonora/bloc/base/sj_base_bloc.dart';
import 'package:sonora/bloc/blockList/sj_block_list_event.dart';
import 'package:sonora/bloc/blockList/sj_block_list_state.dart';

class SjBlockListBloc extends SjBaseBloc<SjBlockListEvent, SjBlockListState> {
  SjBlockListBloc() : super(const SjBlockListState()) {
    on<SjBlockListEventInitial>(_onInitial);
    on<SjBlockListEventLoaded>(_onLoadedData);
  }

  FutureOr<void> _onInitial(
      SjBlockListEventInitial event, Emitter<SjBlockListState> emit) async {
    emit(state.copyWith(loading: true));
  }

  FutureOr<void> _onLoadedData(
      SjBlockListEventLoaded event, Emitter<SjBlockListState> emit) async {
      }
}
